package com.donfu.system.domain.house;

import java.io.Serializable;
import java.util.Date;

import com.donfu.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.donfu.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 商品规格参数对象 house_spec_param
 *
 * @author donfu
 * @date 2021-12-06
 */
@ApiModel(description = "商品规格参数对象")
public class HouseSpecParam implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 注解ID */
    @ApiModelProperty(value = "注解ID")
    private Long id;

    /** 商品spu_id */
    @ApiModelProperty(value = "商品spu_id")
    @Excel(name = "商品spu_id")
    private Long houseGoodsId;

    /** 规格参数父级ID, 一级默认为0 */
    @ApiModelProperty(value = "规格参数父级ID, 一级默认为0")
    @Excel(name = "规格参数父级ID, 一级默认为0")
    private Long parentId;

    /** 规格参数名称 */
    @ApiModelProperty(value = "规格参数名称")
    @Excel(name = "规格参数名称")
    private String name;

    /** 排序 */
    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    private Integer sort;

    /** 创建时间 */
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 更新时间 */
    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date updateDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setHouseGoodsId(Long houseGoodsId)
    {
        this.houseGoodsId = houseGoodsId;
    }

    public Long getHouseGoodsId()
    {
        return houseGoodsId;
    }
    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public void setCreateDate(Date createDate)
    {
        this.createDate = createDate;
    }

    public Date getCreateDate()
    {
        return createDate;
    }
    public void setUpdateDate(Date updateDate)
    {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate()
    {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("houseGoodsId", getHouseGoodsId())
                .append("parentId", getParentId())
                .append("name", getName())
                .append("createDate", getCreateDate())
                .append("updateDate", getUpdateDate())
                .toString();
    }
}
